<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <title>美策平台</title>
    <link rel="icon" type="image/png" href="/img/icon.png">
    <link rel="stylesheet" type="text/css" href="../datepicker/jquery-ui.min.css">
    <link type="text/css" rel="stylesheet" href="../css/app.css"/>
    <link type="text/css" rel="stylesheet" href="../css/loginMobile.css"/>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script src="../datepicker/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/pc/js/all.js"></script>
</head>
<body id="Ibody">
<!--
	制作：陈道祥
	页面：工厂认证
	更新：九哥
-->





<!-----------工厂认证页面---------->
<div class="stepTwo" id="IstepFiveFactoryCertify">
    <div class="companyHeadPanel">
        <div class="companyHeadOne">上传证件认证，增加与客户、与企业合作的信任度，证明企业实力，增加企业分值，只有合作方可以看到，请放心上传。</div>
    </div>
    <div class="companyInfoSpace"></div>
    <div class="modelPanel">
        <div class="modelTile">法人证件</div>
        <div class="bossFileDiv">
            <div class="bossFileText">请上传形象照</div>
            <form action="" enctype="multipart/form-data" method="POST">
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileXxz" onchange="setFormFile(1)">
                <button type="submit" class="bossFileUp" id="submit-1">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showXxz" style="display:none;"></div>
        </div>
        <div class="bossFileDiv">
            <div class="bossFileText">请上传身份证</div>
            <form action="" enctype="multipart/form-data" method="POST">
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileSfz" onchange="setFormFile(2)">
                <button type="submit" class="bossFileUp" id="submit-2">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showSfz" style="display:none;"></div>
        </div>
        <div class="bossFileDiv">
            <div class="bossFileText">请上传毕业证</div>
            <form action="" enctype="multipart/form-data" method="POST" >
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileByz" onchange="setFormFile(3)">
                <button type="submit" class="bossFileUp" id="submit-3">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showByz" style="display:none;"></div>
        </div>
        <div class="bossFileDiv">
            <div class="bossFileText">请上传奖状</div>
            <form action="" enctype="multipart/form-data" method="POST">
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileJz" onchange="setFormFile(4)">
                <button type="submit" class="bossFileUp" id="submit-4">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showJz" style="display:none;"></div>
        </div>
        <div class="bossFileDiv">
            <div class="bossFileText">请上传结婚证</div>
            <form action="" enctype="multipart/form-data" method="POST">
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileJhz" onchange="setFormFile(5)">
                <button type="submit" class="bossFileUp" id="submit-5">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showJhz" style="display:none;"></div>
        </div>
        <div class="bossFileDiv">
            <div class="bossFileText">请驾驶证</div>
            <form action="" enctype="multipart/form-data" method="POST">
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileJsz" onchange="setFormFile(6)">
                <button type="submit" class="bossFileUp" id="submit-6">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showJsz" style="display:none;"></div>
        </div>
    </div>
    <div class="companyInfoSpace"></div>
    <div class="modelPanel">
        <div class="modelTile">工厂证件</div>
        <div class="bossFileDiv">
            <div class="bossFileText">请上传组织机构代码</div>
            <form action="" enctype="multipart/form-data" method="POST">
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileZzjgdmz"
                       onchange="setFormFile(7)">
                <button type="submit" class="bossFileUp" id="submit-7">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showZzjgdmz" style="display:none;"></div>
        </div>
        <div class="bossFileDiv">
            <div class="bossFileText">请上传营业执照</div>
            <form action="" enctype="multipart/form-data" method="POST">
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileYyzz"
                       onchange="setFormFile(8)">
                <button type="submit" class="bossFileUp" id="submit-8">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showYyzz" style="display:none;"></div>
        </div>
        <div class="bossFileDiv">
            <div class="bossFileText">请上传税务登记证</div>
            <form action="" enctype="multipart/form-data" method="POST">
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileSwdjz"
                       onchange="setFormFile(9)">
                <button type="submit" class="bossFileUp" id="submit-9">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showSwdjz" style="display:none;"></div>
        </div>
        <div class="bossFileDiv">
            <div class="bossFileText">请上传租赁合同</div>
            <form action="" enctype="multipart/form-data" method="POST">
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileZlht"
                       onchange="setFormFile(10)">
                <button type="submit" class="bossFileUp" id="submit-10">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showZlht" style="display:none;"></div>
        </div>
        <div class="bossFileDiv">
            <div class="bossFileText">请上传各类许可证</div>
            <form action="" enctype="multipart/form-data" method="POST">
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileXkz"
                       onchange="setFormFile(11)">
                <button type="submit" class="bossFileUp" id="submit-11">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showXkz" style="display:none;"></div>
        </div>
        <div class="bossFileDiv">
            <div class="bossFileText">请上传荣誉证</div>
            <form action="" enctype="multipart/form-data" method="POST">
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileRyzs"
                       onchange="setFormFile(12)">
                <button type="submit" class="bossFileUp" id="submit-12">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showRyzs" style="display:none;"></div>
        </div>
        <div class="bossFileDiv">
            <div class="bossFileText">请上传房产证</div>
            <form action="" enctype="multipart/form-data" method="POST">
                <span class="param"></span>
                <input type="file" class="bossFile" name="fileFcz"
                       onchange="setFormFile(13)">
                <button type="submit" class="bossFileUp" id="submit-13">上传</button>
            </form>
            <div class="bossFileImgDiv" id="showFcz" style="display:none;"></div>
        </div>
    </div>
    <div class="companyInfoSpace"></div>
    <div class="companyRemark">备注：方便你的客户找到你、招聘的员工找到你、了解你、信任你，图片尽量上传完善。让客户多了解自己，容易接单成功。细节决定成败，图片清晰。</div>
    <div class="nextStepDiv">
        <!--<span class="prevStep" id="facFilePre">上一步</span>-->
        <!--<span class="nextStep" id="facFileNext">下一步</span>-->
        <span class="prevStep" onclick="history.go(-1)">返回</span>
        <span class="nextStep" onclick="setSave()">保存</span>
    </div>
</div>
<!-----------工厂认证页面---------->





<!-----------提示信息---------->
<div id="errMsg"></div>
<!-----------提示信息---------->
</body>
<script type="text/javascript" src="../js/loginFac.js"></script>
<script>
    (function(){
        getFacFile();
        setTimeout(function () {judgeFull()}, 3000)
    })();
    /**
     * 设置保存
     * */
    function setSave(){
        var userInfo = cacheGet('userInfo'); //获取用户信息
        if (userInfo==null || userInfo.token=='undefined') {
            getErrMsg('没有登录！',''); return;
        }
        judgeFull()
        window.location.href = '/h5/login/facList.html';
    }

    function judgeFull() { // 判断是否填写信息
        var judgeFullArray = []
        var facFile = ''
        $('.bossFileImgDiv').each(function () {
            if ($(this).children().length > 0) {
                judgeFullArray.push(0)
            }
        })

        if (judgeFullArray.length > 0) {
            facFile = true
        } else {
            facFile = false
        }
        cacheSet('facFile', facFile)
    }
</script>
</html>